Skip to content

feat: add core data quality schema tests and generic test macros#1301

Open
Hitendrasinhdata7 wants to merge 1 commit intotuva-health:mainfrom
Hitendrasinhdata7:enhance-core-data-quality
Open

feat: add core data quality schema tests and generic test macros#1301
Hitendrasinhdata7 wants to merge 1 commit intotuva-health:mainfrom
Hitendrasinhdata7:enhance-core-data-quality

Conversation

@Hitendrasinhdata7
Copy link
Copy Markdown

What this PR does

  • Adds schema tests to core__patient and core__encounter models
  • Adds generic test macros: date_not_in_future and not_negative
  • Tests cover: not_null, unique, accepted_values, relationships, and custom date validation

Tests added

  • core__patient: patient_id (not_null, unique), sex, race, birth_date, death_date, death_flag, tuva_last_run
  • core__encounter: encounter_id (not_null, unique), patient_id (relationships), encounter_type (accepted_values), encounter_start_date, encounter_end_date, tuva_last_run

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 5, 2026

Deploy Preview for thetuvaproject canceled.

Name Link
🔨 Latest commit c794a3f
🔍 Latest deploy log https://app.netlify.com/projects/thetuvaproject/deploys/69d24b6a5e29380008d23a0f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 Ready for Review

Development

Successfully merging this pull request may close these issues.

1 participant